# Contributor: Alex McGrath <amk@amk.ie>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-marshmallow-enum
_pkgname=marshmallow_enum
pkgver=1.5.1
pkgrel=7
pkgdesc="Enum field for use with Marshmallow."
url="https://github.com/justanr/marshmallow_enum"
arch="noarch"
license="MIT"
depends="py3-marshmallow"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="marshmallow-enum-$pkgver.tar.gz::https://github.com/justanr/marshmallow_enum/archive/v1.5.1.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # no tests

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
989fe58613dc28f242b1990a727a87c453809ad2de9355595e53e2c569de6434c76c150522c31189282edca74740dc0aabfafa57e2f78397644adae1b6d99f7d  marshmallow-enum-1.5.1.tar.gz
"
